﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ServiceDetails.aspx.cs"
    Inherits="NJL.Web.Shop.ServiceDetails" %>

<%@ Import Namespace="NJL.Web" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="../Controls/WUCHeaderShop.ascx" TagName="WUCHeaderShop" TagPrefix="uc1" %>
<%@ Register Src="../Controls/WUCFooterShop.ascx" TagName="WUCFooterShop" TagPrefix="uc2" %>
<%@ Register Src="../Controls/WUCHeaderShop2.ascx" TagName="WUCHeaderShop2" TagPrefix="uc4" %>
<%@ Register Src="../Controls/WUEnterPriseSpaceLeftBaseInfo.ascx" TagName="WUEnterPriseSpaceLeftBaseInfo"
    TagPrefix="uc5" %>
<%@ Register Src="../Controls/WUEnterPriseSpaceLeftBook.ascx" TagName="WUEnterPriseSpaceLeftBook"
    TagPrefix="uc6" %>
<%@ Register Src="../Controls/WUEnterPriseSpaceLeftIntro.ascx" TagName="WUEnterPriseSpaceLeftIntro"
    TagPrefix="uc8" %>
<%@ Register Src="../Controls/WUEnterPriseSpaceLeftTravel.ascx" TagName="WUEnterPriseSpaceLeftTravel"
    TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/Styles/shop/shop002/shop.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="/styles/miaov_style.css" media="screen" />
    <script src="/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/Scripts/popup_layer.js" type="text/javascript"></script>
    <script type="text/javascript">
        function GetValidate() {
            document.getElementById("Validate").src = "/ValidateCode.aspx?rand=" + Math.random();
        }  
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <%
        if (UserId == "" || UserName == "")
        {         
    %>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //示例9，综合效果
            var t9 = new PopupLayer({ trigger: "#txtComment", popupBlk: "#blk9", closeBtn: "#close9", useOverlay: true, useFx: true,
                offsets: {
                    x: 0,
                    y: -41
                }
            });
            t9.doEffects = function (way) {
                if (way == "open") {
                    this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                        this.popupLayer.animate({
                            left: ($(document).width() - this.popupLayer.width()) / 2,
                            top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                            opacity: 0.8
                        }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                    } .binding(this));
                    document.getElementById('Login').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
                }
                else {
                    this.popupLayer.animate({
                        left: this.trigger.offset().left,
                        top: this.trigger.offset().top,
                        opacity: 0.1
                    }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
                }
            }
        });
    </script>
    <div id="blk9" class="blk">
        <div class="popup_title">
            <span class="float_r"><a href="javascript:void(0)" id="close9">关闭</a></span>
            <ul>
                <li class="now"><a target="main">登录</a> </li>
            </ul>
        </div>
        <div>
            <iframe id="Login" name="main" width="500" height="420" style="overflow: hidden;
                border: none;" frameborder="no" border="0"></iframe>
        </div>
    </div>
    <%
        }
    %>
    <uc1:WUCHeaderShop ID="WUCHeaderShop1" runat="server" />
    <div class="w1000 main">
        <!--商铺信息-->
        <uc4:WUCHeaderShop2 ID="WUCHeaderShop21" runat="server" />
        <!--左侧-->
        <div class="w_258 leftside float_l cont">
            <!--基本信息-->
            <uc5:WUEnterPriseSpaceLeftBaseInfo ID="WUEnterPriseSpaceLeftBaseInfo1" runat="server" />
            <!--简介-->
            <div class="cleanFlex blank">
            </div>
            <uc8:WUEnterPriseSpaceLeftIntro ID="WUEnterPriseSpaceLeftIntro1" runat="server" />
            <!--相关游记-->
            <div class="blank">
            </div>
            <uc3:WUEnterPriseSpaceLeftTravel ID="WUEnterPriseSpaceLeftTravel1" runat="server" />
        </div>
        <!--右侧-->
        <div class="w_665 float_r cont">
            <!--服务介绍-->
            <div>
                <!--大标题-->
                <div class="title">
                    <span class="float_r">|<a href="/shangpu/<%=Request.QueryString["id"] %>-index.html">查看全部服务</a></span>
                    <h2>
                        <strong>服务介绍：</strong><asp:Literal ID="litCompanyName" runat="server"></asp:Literal></h2>
                </div>
                <div class="cont">
                    <div class="titlearticle">
                        <h3>
                            <asp:Literal ID="litServiceName" runat="server"></asp:Literal></h3>
                        <p>
                              标签：<asp:Literal ID="litTag" runat="server"></asp:Literal>(<asp:Literal ID="litCreatDate" runat="server"></asp:Literal>)
                          </p>
                    
                    </div>
                    <!--图片-->
                    <div class="center servicepic">
                        <p class="float_l servicepicL">
                            <span class="prome">
                                <asp:HyperLink ID="hipLinkPrev" runat="server" ToolTip="上一个" ></asp:HyperLink></span></p>
                        <p class="float_l">
                            <asp:Image ID="Image1" runat="server" Width="500px" Height="375px" CssClass="picBor"
                                BorderWidth="1" /></p>
                        <p class="float_l servicepicR">
                            <span class="next">
                                <asp:HyperLink ID="hplinkNext" runat="server" ToolTip="下一个" ></asp:HyperLink></span></p>
                    </div>
                    <div class="fontinfo cleanFlex">
                        <asp:Literal ID="litContent" runat="server"></asp:Literal>
                    </div>
                </div>
            </div>
            <div>
             阅读:(<asp:Literal ID="litHit" runat="server"></asp:Literal>)
            </div>
            <!--热门推荐-->
            <div class="blank cleanFlex">
            </div>
            <div>
                <div class="righttitle">
                    <span class="float_r"><a href="/shangpu/<%=Request.QueryString["id"] %>-index.html">
                        查看全部服务</a> </span>
                    <h2>
                        特色服务</h2>
                </div>
                <div class="cont">
                    <ul class="imglist">
                        <asp:Repeater ID="rptHot" runat="server">
                            <ItemTemplate>
                                <li style="width: 145px; height: 136px;"><a target="_blank" title="<%#Eval("SERVICE_NAME") %>"
                                    href="/shangpu/<%#Eval("NJL_COMPANY_ID") %>-fuwu-<%#Eval("ID")%>.html">
                                    <img alt="<%#Eval("SERVICE_NAME") %>" class="picBor" width="135px" height="100px"
                                        src="<%#Eval("IMAGE_CODE").ToString()!=""?GetImageUrl(Eval("IMAGE_CODE").ToString(),"1"):"/Images/nopic.jpg" %>" />
                                </a>
                                    <p class="center">
                                        <a target="_blank" title="<%#Eval("SERVICE_NAME") %>" href="/shangpu/<%#Eval("NJL_COMPANY_ID") %>-fuwu-<%#Eval("ID")%>.html">
                                            <%#PageValidate.SqlText(Eval("SERVICE_NAME").ToString(),10)%>
                                        </a>
                                    </p>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div class="cleanFlex">
                </div>
            </div>
            <!--留言板-->
            <div class="blank cleanFlex">
            </div>
            <div class="message">
                <div class="righttitle">
                    <h2>
                        我要评论</h2>
                </div>
                <div class="cont">
                    <!--留言板-->
                    <div>
                        <asp:TextBox ID="txtComment" runat="server" Height="50px" TextMode="MultiLine" Width="640px"></asp:TextBox>
                        <div class="blank">
                        </div>
                        <p>
                            <span class="float_r">
                                <asp:Button ID="btnComment" runat="server" Text="提 交" class="greenbtn" OnClientClick="return check()"
                                    OnClick="btnComment_Click" />
                            </span>验证码:<asp:TextBox ID="txtValidate" runat="server" class="input" Width="60px"
                                MaxLength="4"></asp:TextBox><img id="Validate" onclick="javascript:GetValidate()"
                                    alt="验证码" title="看不清，点击图片，换一张" align="absmiddle" src="/ValidateCode.aspx" style="cursor: pointer" />
                        </p>
                    </div>
                    <!--留言内容-->
                    <div class="cleanFlex blank">
                    </div>
                    <div>
                        <asp:Repeater ID="rptCommentList" runat="server" OnItemDataBound="rptCommentList_ItemDataBound"
                            OnItemCommand="rptCommentList_ItemCommand">
                            <ItemTemplate>
                                <div class="itemlist">
                                    <!--左侧头像-->
                                    <div class="itemlist_photo float_l">
                                        <a href="/wanjia/<%#Eval("CREATE_USER_ID") %>-index.html" target="_blank">
                                            <asp:Image ID="imgUserHead" runat="server" Width="120px" Height="90px" CssClass="picBor">
                                            </asp:Image>
                                        </a>
                                        <p>
                                            <strong><a href="/wanjia/<%#Eval("CREATE_USER_ID") %>-index.html" target="_blank">
                                                <%#Eval("CREATE_USER_NAME")%></a> </strong>
                                        </p>
                                        <p style="display: none">
                                            <span><a href="#">去看看他</a></span>|<span><a href="#">发消息</a></span></p>
                                    </div>
                                    <!--留言内容-->
                                    <div class="itemlistcont">
                                        <p class="time">
                                            <strong>
                                                <%#Eval("CREATE_DATE_TIME")%></strong></p>
                                        <p>
                                            <%#Eval("COMMENT_CONTENT")%>
                                        </p>
                                        <p class="itemlist_comment">
                                            <%--     <span><a href="#">回复</a></span>| <span><a href="#">分享</a></span> <span>--%>
                                            <asp:LinkButton ID="lbtnDel" runat="server" CommandName="Del" CommandArgument='<%#Eval("ID") %>'
                                                OnClientClick="return confirm('您确定要删除吗？')">删除</asp:LinkButton></span>
                                        </p>
                                    </div>
                                    <div class="cleanFlex">
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                        <div class="cleanFlex">
                        </div>
                    </div>
                </div>
            </div>
            <div class="cleanFlex">
            </div>
        </div>
        <div class="cleanFlex">
        </div>
    </div>
    <uc2:WUCFooterShop ID="WUCFooterShop1" runat="server" />
    </form>
    <script type="text/javascript">
        function check() {
            var comment = $('#<%=txtComment.ClientID %>').val();
            comment = $.trim(comment);
            if (comment == "") {
                alert("评论内容不能为空哦^_^");
                return false;
            }
            if (comment.length > 100) {
                alert('评论内容不能超过100个字哦^_^');
                return false;
            }
            var txtValidate = document.getElementById("<%=txtValidate.ClientID %>").value;
            txtValidate = $.trim(txtValidate);
            if (txtValidate == "") {
                alert("验证码不能为空哦^_^");
                return false;
            }
        }    
    </script>
</body>
</html>
